import request from '@/utils/request'

export default{

  //根据小节id获取小节
  getVideo(videoId){
    return request({
      url: `/eduservice/video/getVideo/${videoId}`,
      method: 'get',
    })
  },
 //添加小节
 addVideo(video) {
    return request({
      url: `/eduservice/video/addVideo`,
      method: 'post',
      data:video
    })
  },


  //修改小节
  updateVideo(video) {
  return request({
    url: `/eduservice/video/updateVideo`,
    method: 'post',
    data:video
  })
  },

  //根据小节id删除小节
  deleteVideoByVideoId(videoId) {
    return request({
      url: `/eduservice/video/${videoId}`,
      method: 'post',
    })
    },

  //删除视频
  deleteVedioByVedioId(videoSourceId){
    return request({
      url: `/eduvod/video/deleteAliyunViedo/${videoSourceId}`,
      method: 'post',
    })
  }


}
